package com.caishi.lkx.user.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.caishi.lkx.user.mapper.SysTeacherMapper;
import com.caishi.lkx.user.model.TeacherModel;
import com.caishi.lkx.user.service.ISysTeacherService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SysTeacherServiceImpl implements ISysTeacherService {
    @Autowired
    private SysTeacherMapper sysTeacherMapper;
    @Override
    public IPage<TeacherModel> getTeachers(IPage<TeacherModel> page, TeacherModel teacherModel) {
        QueryWrapper<TeacherModel> teacherModelQueryWrapper = new QueryWrapper<>();
        teacherModelQueryWrapper.eq("delete_flag",0)
                ;

        return sysTeacherMapper.selectPage(page, teacherModelQueryWrapper);
    }
}
